﻿using System;
using System.Windows.Forms;

namespace AlishaInvite
{
    public partial class FormSettings : Form
    {
        public FormSettings()
        {
            InitializeComponent();
        }

        private void FormSettingsLoad(object sender, EventArgs e)
        {
            pgSettings.SelectedObject = AlishaInviteSettings.Instance;
        }

        private void PgSettingsPropertyValueChanged(object s, PropertyValueChangedEventArgs e)
        {
            if (pgSettings.SelectedObject is AlishaInviteSettings)
                ((AlishaInviteSettings)pgSettings.SelectedObject).Save();
        }
    }
}
